import request from "@/utils/request";

export const getBannerList = params => {
    return request({
      url: '/carouselImage/list',  
      params
    })
} 
export const getBannerDetail = params => {
  return request({
    url: '/carouselImage/detail',  
    params
  })
} 

export const addBanner = data => {
  return request({
    url: '/carouselImage/add',
    // url: '/file/imageUpload',
  // /file/imageUpload
    method: 'POST',
    data
  })
} 
export const editBanner = params => {
  return request({
    url: '/carouselImage/update', 
    method: 'GET',
    params
  })
} 
export const deletBanner = params => {
    return request({
      url: '/carouselImage/delete', 
      method: 'GET',
      params
    })
  } 